<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	tailSeq			= Request("tailSeq")
	apprYear		= Request("apprYear")
	apprSeq		= Request("apprSeq")
	comment		= Request("comment")
	flag				= Request("flag")
	
	accessId = Request.Cookies("S_uid")

	If tailSeq = "" Then tailSeq = 0 End If 

	comment		= Replace(comment,"'","''")
	
	SQLTitle = "-- ■■■■  전자결재 댓글 저장 ■■■■"
	SQL = "exec spSaveWorkApprTail '" & tailSeq & "', '" & apprYear & "', '" & apprSeq & "', '" & accessId & "', '" & comment & "', '" & flag & "'"

	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

'Response.write SQL
'Response.end
	DbCon.Execute SQL

	Call rsWithXML("Save OK!")
%>